package com.jufa_3.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class InterUseRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String sourceOrderId;

    private String sourceType;

    private String useInter;

    private LocalDateTime useTime;

    private String interKeyword;

    private String respId;

    private String queryResult;

    private String queryInfo;

    public InterUseRecord(String sourceOrderId, String sourceType, String useInter, String interKeyword, String respId, String queryResult) {
        this.sourceOrderId = sourceOrderId;
        this.sourceType = sourceType;
        this.useInter = useInter;
        this.useTime = LocalDateTime.now();
        this.interKeyword = interKeyword;
        this.respId = respId;
        this.queryResult = queryResult;
    }

    public InterUseRecord(String sourceOrderId, String sourceType, String useInter, String interKeyword, String queryResult) {
        this.sourceOrderId = sourceOrderId;
        this.sourceType = sourceType;
        this.useInter = useInter;
        this.useTime = LocalDateTime.now();
        this.interKeyword = interKeyword;
        this.queryResult = queryResult;
    }

    public InterUseRecord(String sourceOrderId, String sourceType, String useInter, String interKeyword) {
        this.sourceOrderId = sourceOrderId;
        this.sourceType = sourceType;
        this.useInter = useInter;
        this.useTime = LocalDateTime.now();
        this.interKeyword = interKeyword;
    }

    public InterUseRecord() {
    }
}
